package com.yxn.dao.impl;

import com.yxn.base.HibernateDao;
import com.yxn.dao.IUserDao;
import com.yxn.entity.TblUser;
import org.springframework.stereotype.Repository;

/**
 * Created by yanxi on 2018/1/13 0013.
 */
@Repository
public class UserDaoImpl extends HibernateDao<TblUser> implements IUserDao {
    @Override
    protected Class<TblUser> getEntityClass() {
        return TblUser.class;
    }

    @Override
    public TblUser getUserById(String id) {
        return findDataByCondition("name",id,"=").get(0);
    }
}
